package com.pj.utils;

/**
 * @author: szy
 * @program: pj-novel
 * @description: 爬虫数据集处理工具类
 * @create: 2022-11-14 12:20
 **/

public class BookDetailUtils {
    //根据分类名称转换分类id
    public static Integer catNameConvertCatId(String catName){
        switch (catName) {
            case "xuanhuan":
                return 1;
            case "wuxia":
                return 2;
            case "dushi":
                return 3;
            case "lishi":
                return 4;
            case "kehuan":
                return 5;
            case "wangyou":
                return 6;
            case "mm":
                return 7;
        }
        return null;
    }
}
